package com.sdx.console.person.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ibeetl.admin.core.entity.BaseEntity;
import com.ibeetl.admin.core.util.ValidateConfig;
import com.sdx.common.utils.Utils;
import lombok.Data;
import org.beetl.sql.core.annotatoin.AssignID;

import javax.validation.constraints.NotNull;
import java.util.Date;

/* 
* 
* gen by Spring Boot2 Admin 2019-01-22
*/
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@Data
public class CustomerExtInfo extends BaseEntity{

    //会员id
    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @AssignID
    private String customerId ;
	
    //真名
    private String customerName ;
	
    //会员推荐语

    private String brief ;
	
    //会员介绍[html]

    private String introduce ;
	
    //个性签名

    private String sign ;
	
    //职位

    private String job ;
    //推广码

    private String spCode ;
	
    //工作照

    private String workPicurl ;
	
    //生活照

    private String dailyPicurl ;
	
    //直播权限 [0-禁用 1-启用]

    private Integer zhiboPower ;
	
    //点赞数

    private Integer praiseCount ;
	
    //约见数

    private Integer meetsCount ;
	
    //关注数

    private Integer followCount ;
	
    //定位名称(省份)

    private String locationPro ;
	
    //定位名称(城市)

    private String locationCity ;
	
    //地图坐标

    private String locationPoint ;
	
    //可用标记 1、可用，0、不可用

    private Integer custStatus ;
	
    //更新人

    private Integer updatedBy ;
	
    //更新人名称

    private String updatedName ;

    //更新人名称

    private String star ;
	
    //更新时间

    private Date updatedTime ;

    private Long orgId;
	

	public String getWorkPicurlView(){
		return Utils.imageUrl(workPicurl);
	}

	public String getDailyPicurlView(){
		return Utils.imageUrl(dailyPicurl);
	}

}
